package com.beta.service.impl;

import com.beta.dto.product.ProductPropertiesDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.beta.mapper.PropertiesMapper;
import com.beta.entity.Properties;
import com.beta.service.IPropertiesService;
import com.baomidou.framework.service.impl.SuperServiceImpl;

import java.util.List;

/**
 * Properties 表数据服务层接口实现类
 */
@Service
public class PropertiesService extends SuperServiceImpl<PropertiesMapper, Properties> implements IPropertiesService {
    @Autowired
    private PropertiesMapper propertiesMapper;

    @Override
    public List<ProductPropertiesDto> getProperties(int productItemId) {
        return propertiesMapper.getProperties(productItemId);
    }
}